package com.webxiaohua.pattern.builder;

/**
 * @author shenxinhua
 * @date 2019-07-25 21:06
 * @desc xxx
 */
public class App {
    public static void main(String... args){
        MealBuilder mealBuilder = new MealBuilder();
        Meal vegMeal = mealBuilder.prepareVegMeal();
        System.out.println("Veg Meal:");
        vegMeal.showItems();
        System.out.println("Total cost:"+vegMeal.getCost());

        Meal nonVegMeal = mealBuilder.preapareNonVegMeal();
        System.out.println("Non Veg Meal:");
        nonVegMeal.showItems();
        System.out.println("Total cost:"+nonVegMeal.getCost());

    }
}
